package cn.beans;

import java.util.Date;

public class News implements java.io.Serializable {

	// Fields

	private String id;
	private String title;
	private String abstracts;
	private String content;
	private String creAdminId;
	private String creAdminName;
	private Date creDate;
	private String lastEditorId;
	private String lastEditorName;
	private Date lastEditTime;
	private String isRecommended;
	private Integer readTimes;
	private NewsCategory category;

	// Constructors

	/** default constructor */
	public News() {
	}

	/** full constructor */
	public News(String abstracts, String title, String content, String creAdminId,
			String creAdminName, Date creDate, String lastEditorId,
			String lastEditorName, Date lastEditTime,
			String isRecommended, Integer readTimes, NewsCategory category) {
		this.abstracts = abstracts;
		this.title = title;
		this.content = content;
		this.creAdminId = creAdminId;
		this.creAdminName = creAdminName;
		this.creDate = creDate;
		this.lastEditorId = lastEditorId;
		this.lastEditorName = lastEditorName;
		this.lastEditTime = lastEditTime;
		this.isRecommended = isRecommended;
		this.readTimes = readTimes;
		this.category = category;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAbstracts() {
		return abstracts;
	}

	public void setAbstracts(String abstracts) {
		this.abstracts = abstracts;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCreAdminId() {
		return this.creAdminId;
	}

	public void setCreAdminId(String creAdminId) {
		this.creAdminId = creAdminId;
	}

	public String getCreAdminName() {
		return this.creAdminName;
	}

	public void setCreAdminName(String creAdminName) {
		this.creAdminName = creAdminName;
	}

	public Date getCreDate() {
		return this.creDate;
	}

	public void setCreDate(Date creDate) {
		this.creDate = creDate;
	}

	public String getLastEditorId() {
		return this.lastEditorId;
	}

	public void setLastEditorId(String lastEditorId) {
		this.lastEditorId = lastEditorId;
	}

	public String getLastEditorName() {
		return this.lastEditorName;
	}

	public void setLastEditorName(String lastEditorName) {
		this.lastEditorName = lastEditorName;
	}

	public Date getLastEditTime() {
		return this.lastEditTime;
	}

	public void setLastEditTime(Date lastEditTime) {
		this.lastEditTime = lastEditTime;
	}

	public String getIsRecommended() {
		return this.isRecommended;
	}

	public void setIsRecommended(String isRecommended) {
		this.isRecommended = isRecommended;
	}

	public Integer getReadTimes() {
		return this.readTimes;
	}

	public void setReadTimes(Integer readTimes) {
		this.readTimes = readTimes;
	}

	public NewsCategory getCategory() {
		return category;
	}

	public void setCategory(NewsCategory category) {
		this.category = category;
	}

}